package edu.tjufe.llp.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 充电记录对象 charge_record
 * 
 * @author llp
 * @date 2022-12-25
 */
@Getter
@Setter
public class ChargeRecord implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 记录id
     */
    private Integer recordId;

    /**
     * 电动车id
     */
//    @Excel(name = "电动车id")
    private Integer carId;

    /**
     * 充电桩id
     */
//    @Excel(name = "充电桩id")
    private Integer stationId;

    /**
     * 开始充电时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @Excel(name = "开始充电时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date chargeStart;

    /**
     * 结束充电时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @Excel(name = "结束充电时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date chargeEnd;

    /**
     * 充电花费
     */
//    @Excel(name = "充电花费")
    private BigDecimal money;

    /**
     * 备注
     */
//    @Excel(name = "备注")
    private String recordRemark;

    @TableField(exist = false)
    private String carCode;

    @TableField(exist = false)
    private String stationCode;

//    @TableField(exist = false)
//    private String area;

    @TableField(exist = false)
    private String areaName;
}
